package com.xju.boot_23_24.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("tbl_employee")
public class Employee {
//    @TableId(type = IdType.AUTO)
    private Long id;
    private String lastName;
    private String email;
    private Integer gender;
    private Integer age;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;;

    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

}
